package com.zhu.service.edu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhu.service.edu.pojo.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhu.service.edu.pojo.EduTeacher;
import com.zhu.service.edu.pojo.dto.CourseVo;
import com.zhu.service.edu.pojo.vo.*;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author zhu
 * @since 2022-07-04
 */
public interface IEduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfoById(String id);

    boolean updateCourseInfoById(CourseInfoVo courseInfoVo);


    IPage<EduCourse> selectPage(Page<EduCourse> pageParam, CourseQueryVo courseQueryVo);

    PageBean selectPages(Long currentPage, Long size, CourseQueryVo courseQueryVo);

    boolean removeCourseById(String id);

    CoursePublishVo getCoursePublishById(String id);

    Boolean publishCourse(String id);

    List<EduCourse> selectFrontList(CourseFrontQueryVo courseFrontQueryVo);

    List<EduCourse> selectFrontListS(CourseFrontQueryVo courseFrontQueryVo);

    List<SubjectInfoFrontVo> findCourseIntro(String id);

    List<SubjectInfoFrontVo> findCourseIntro2(String id);

    List<EduCourse> selectHotCourse();

    List<EduTeacher> selectHotTeacher();

    CourseVo getCourseDtoById(String courseId);
}
